package com.leon.api.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description: 用户表
 * @program: heima-wallet
 * @author: Leon
 * @date: 2021-03-08 19:43
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_user")
public class User {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;         // 用户id

    @TableField(value = "username")
    private String username;    // 用户名

    @TableField(value = "password")
    private String password;    // 用户密码

    @TableField(value = "phone")
    private String phone;       // 用户手机号

    @TableField(value = "account_id")
    private Integer accountId;  // 账户id

    @TableField(value = "create_time")
    private Date createTime;    // 注册时间


}
